package com.scalar.chiptrack.operations.inventoryps.actioncommands;

import com.scalar.chiptrack.actioncommands.ActionCommand;

public class InventoryPackingSlipActionCommandFactory
{
    public static ActionCommand getActionCommand(String action)
    {
        if (action == null || "processTypes".equalsIgnoreCase(action) )
        {
            return new InventoryPackingSlipLoadProcessTypesCommand();
        }
        else if ("search".equalsIgnoreCase(action))
        {
            return new InventoryPackingSlipSearchCommand();
        }
        else if ("lotNumbers".equalsIgnoreCase(action) )
        {
            return new InventoryPackingSlipLoadLotNumbersCommand();
        }
        else if ("generateps".equalsIgnoreCase(action) )
        {
            return new InventoryPackingSlipGenerateCommand();
        }
        else if ("modify".equalsIgnoreCase(action) )
        {
            return new InventoryPackingSlipModifyCommand();
        }
        else if ("save".equalsIgnoreCase(action) || "confirm".equalsIgnoreCase(action) )
        {
            return new InventoryPackingSlipSaveCommand();
        }
        else if ( "view".equalsIgnoreCase(action) || "printView".equalsIgnoreCase(action) || "generatePDF".equalsIgnoreCase(action) )
        {
            return new InventoryPackingSlipViewCommand();
        }

        return null;
    }

}
